package com.binfei.yjs.server.model.entity;


import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;


@Getter
@Setter
@Schema(name = "Entity2", description = "Entity2")
public class Entity2 implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;


    private Integer id;

    @Schema(description = "头像id")
    private Integer avatarId;

    @Schema(description = "外部头像链接 如微信头像外链")
    private String avatarLink;

    @Schema(description = "用户名")
    private String username;

    @Schema(description = "手机号")
    private String phone;

    @Schema(description = "邮箱")
    private String email;

    @Schema(description = "昵称")
    private String nickname;

    @Schema(description = "是否可用")
    private Boolean enabled;

    @Schema(description = "状态码")
    private Integer status;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @Schema(description = "更新时间")
    private LocalDateTime updateTime;

    /**
     * =================================
     */

    @Schema(description = "用户密码(仅传参用,获取时不适用)")     // 不写入用户数据表，使用独立密码数据表
    private String password;

}
